-#session[:return_to] ||= request.referer
%h1 Blog Posts
- @blog_posts.each do |blog_post|
	%p
		%b= link_to blog_post.title, user_blog_post_path(params[:user_id],blog_post.id)
     
	%p= blog_post.content
 
	%p{style: "float: right;"}
	= link_to "Delete", blog_post, method: :delete, confirm: "Are you sure you want to delete this post?"
	%hr{style: "clear: both;"}
 

%br

= link_to 'New Post', new_user_blog_post_path(params[:user])